home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / unix / src / dir_data.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-19  |  463 b   |  33 lines

  1. #ifndef DIR_DATA_H
  2. #define DIR_DATA_H
  3.  
  4. #include <sys/dir.h>
  5.  
  6. typedef struct
  7. {
  8.   char *dirname;
  9.   BPTR cdir;
  10.   struct FileInfoBlock fib;
  11.   struct idirect *files, *pos;
  12.   int seeked;
  13. } iDIR;
  14.  
  15. struct idirect
  16. {
  17.   struct idirect *next;
  18.   /* Info needed for stat */
  19.   long numblocks;
  20.   long size;
  21.   struct DateStamp date;
  22.   long type;
  23.   long protection;
  24.   struct direct entry;
  25. };
  26.  
  27. extern iDIR *last_info;
  28. extern struct idirect *last_entry;
  29.  
  30. BPTR _get_cd(void);
  31.  
  32. #endif
  33.